﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;

namespace MiniTennis
{
    public partial class FrmInicio : Form
    {
        private SQLiteConnection ObjConnection;


        public FrmInicio()
        {
            InitializeComponent();
            ObjConnection = ObjConnection = new SQLiteConnection("Data Source=bd_minitennis.db;");
        }

        private void btn_registrar_Click(object sender, EventArgs e)
        {
            FrmRegistroUsuario frmusuario = new FrmRegistroUsuario(this,ObjConnection);
            frmusuario.Show();
            this.Hide();
        }

        private void btn_login_Click(object sender, EventArgs e)
        {
            FrmLogin frmlogin = new FrmLogin(this,ObjConnection);
            frmlogin.Show();
            this.Hide();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FrmMiniTennis tennis = new FrmMiniTennis(textBox1.Text,ObjConnection);
            tennis.Show();

            this.Hide();
        }
    }
}
